home *** CD-ROM | disk | FTP | other *** search
- !!Script
- // Copyright ⌐ 1997-1998 - Modelworks Software
-
- // Insert script helper for:
-
- /**
- @Object: Host
- @Method: getRelativePath(forPath, fromPath) - returns a string with the
- relative path of a file from a specified path.
- @Syntax: getRelativePath(forPath, fromPath)
- @Summary: getRelativePath - returns a relative path
- */
-
- function DoCommand()
- {
- var editor = getActiveEditor();
- if (editor)
- {
- var selection = editor.getSelection();
- editor.replace("getRelativePath(forPath, fromPath)", selection);
- editor.setActive("Insert getRelativePath");
- }
- }
-
- !!/Script
-